xen: arm: refactor xchg and cmpxchg into their own headers
authorIan Campbell <ian.campbell@citrix.com>
Wed, 26 Mar 2014 13:38:51 +0000 (13:38 +0000)
committerIan Campbell <ian.campbell@citrix.com>
Thu, 3 Apr 2014 16:15:44 +0000 (17:15 +0100)
commit5259aa4eb54c76c76a1650a28756a2af9bc3dcb4
tree07dda23fb6e6db6b75e178094605e0d7ed309851
parent856468788a62a37060d9b9d67c24de8fd1a4c24d
xen: arm: refactor xchg and cmpxchg into their own headers

Since these functions are taken from Linux this makes it easier to compare
against the Lihnux cmpxchg.h headers (which were split out from Linux's
system.h a while back).

Since these functions are from Linux the intention is to use Linux coding
style, therefore include a suitable emacs magic block.

For this reason also fix up the indentation in the 32-bit version to use hard
tabs while moving it. The 64-bit version was already correct.

Signed-off-by: Ian Campbell <ian.campbell@citrix.com>
Acked-by: Tim Deegan <tim@xen.org>
Acked-by: Julien Grall <julien.grall@linaro.org>
xen/include/asm-arm/arm32/cmpxchg.h [new file with mode: 0644]
xen/include/asm-arm/arm32/system.h
xen/include/asm-arm/arm64/cmpxchg.h [new file with mode: 0644]
xen/include/asm-arm/arm64/system.h